package com.bootdo.system.controller;

import com.bootdo.system.domain.ChongbitableDO;
import com.bootdo.system.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.bootdo.system.service.ChongbitableService;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller
@RequestMapping("/chongbitable")
public class ChongbitableController {
    @Autowired
    private ChongbitableService chongbitableService;


    @GetMapping("/detail")
    public R get(Model model) {

        ChongbitableDO chongbitableDO = chongbitableService.get(1);

        return R.ok().put("chongbitableDO",chongbitableDO);
    }


}
